package com.work.utils;

import com.alibaba.druid.pool.DruidDataSource;

/**
 * @program: transfer
 * @description
 * @author: luffy
 * @create: 2020-06-30 15:47
 */
public class DruidUtils {

    private DruidUtils(){
    }

    private static DruidDataSource druidDataSource = new DruidDataSource();


    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://localhost:3306/test?serverTimezone=Hongkong");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("");

    }

    public static DruidDataSource getInstance() {
        return druidDataSource;
    }

}
